#ifndef __VTOR_QUEUE_H__
#define __VTOR_QUEUE_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "vtor_elec_module_config.h"

#ifdef __VTOR_QUEUE__


typedef struct
{
	int16_t pushIdx;
	int16_t popIdx;
	int16_t unitCnt;
	int16_t unitSize;
	int8_t* queueBuf;

}VtorQueue;



void VtorQueue_ErrorHandler(VtorQueue* eq);
int8_t VtorQueue_Push(VtorQueue* eq, void* buf);
int8_t VtorQueue_Pop(VtorQueue* eq, void* buf);
int8_t VtorQueue_Get(VtorQueue* eq, void* buf);
void VtorQueue_Init(VtorQueue* eq);

#endif // __VTOR_QUEUE__

#ifdef __cplusplus
}
#endif

#endif

